<include file="Public:header" />
<link href="__PUBLIC__/Css/bootstrap.min14ed.css" rel="stylesheet" media="all" type="text/css" />
<!--<link href="__PUBLIC__/Css/datepicker3.css" rel="stylesheet" media="all" type="text/css" />-->
<!--<link href="__PUBLIC__/Css/laydate.css" rel="stylesheet" media="all" type="text/css" />
<link href="__PUBLIC__/Css/layui.css" rel="stylesheet" media="all" type="text/css" />-->


<script src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/layui/build/css/layui.css">
<script src="__PUBLIC__/layui/build/layui.js" charset="utf-8"></script>
 <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layui.mobile.css">
<script language="JavaScript">
    ifcheck = true;

    function CheckAll(form) {
        for (var i = 0; i < form.elements.length - 2; i++) {
            var e = form.elements[i];
            e.checked = ifcheck;
        }
        ifcheck = ifcheck == true ? false : true;
    }
</script>
<style>
    .tittleA{height:40px;line-height: 40px;border-bottom:1px solid #eee;padding-left:10px;font-size: 16px; }
    .zong{width:100%;height:40px;line-height: 40px;border-bottom: 1px solid #ddd}
    .tittle{width:100px;float:left;padding-left:10px;}
    .info{float:left}
    .mar-top{margin-top:15px!important;}
    .pag{text-align: center}
    .button_text{padding:3px 12px;margin-top: 15px;}
    select{width:70%;}
    #UserID{border:1px solid #eee;
        width:70%;}
    .bt_tj{padding:2px 15px;}
    .chaxun{margin-top:10px;text-align: center}
    .accounttitle h1{padding:0;}
    .laydate_box{left: 10px !important;}
</style>

<script language=javascript src="__PUBLIC__/Js/wpCalendar.js"></script>
<div class="accounttitle"><h1>会员管理</h1></div>
<div class="ncenter_box">

<!-- <div class="tittleA">会员管理 <a href="__APP__"> [返回]</a></div> -->



<form name="form3" method="post" action="__URL__/adminMenberAC">
<table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="1" id="tb1" bgcolor="#b9c8d0">


    <volist name="list" id="vo" key="k">
        <div <if condition="$k%2== '0'"><if condition="$k%4== '0'"> style="background-color:#f2dede;border-left:2px solid #d73d32 ;"<else/> style="background-color:#fcf8e3;border-left:2px solid #f4b400 ;" </if ><else/>style="background-color:#dff0d8;border-left:2px solid #53a93f;"</if > >
        <div class="zong">
            <div class="tittle">&nbsp;</div>
            <div class="info"><input id="checkbox" type="checkbox" name="tabledb[]" value="{$vo['id']}" class="btn2 mar-top" /></div>
        </div>
        <div class="zong">
            <div class="tittle">会员编号</div>
            <div class="info"><a href="__URL__/adminuserData/PT_id/{$vo['id']}" style="color:#f00;font-size: 16px;">{$vo['user_id']}</a></div>
        </div>
        <div class="zong">
            <div class="tittle">姓名</div>
            <div class="info">{$vo['user_name']}</div>
        </div>
        <div class="zong">
            <div class="tittle">开通时间</div>
            <div class="info">{$vo.pdt|date='Y-m-d H:i:s',###}</div>
        </div>
        <div class="zong">
            <div class="tittle">级别</div>
            <div class="info">{$vo['cpzj']}</div>
        </div>
        <div class="zong">
            <div class="tittle">投资金额</div>
            <div class="info">{$vo['xf_money']}</div>
        </div>
        <div class="zong">
            <div class="tittle"><a href="__APP__/Recharge/cody/c_id/5/">ZTBL币</a></div>
            <div class="info">{$vo['ztbl']}</div>
        </div>
        <div class="zong">
            <div class="tittle">锁</div>
            <div class="info">{$vo['present_money']}</div>
        </div>
        <div class="zong">
            <div class="tittle">余额</div>
            <div class="info">{$vo['agent_use']}</div>
        </div>
        <div class="zong">
            <div class="tittle">钱包地址</div>
            <div class="info">{$vo['weixinCode']}</div>
        </div>
        <div class="zong">
            <div class="tittle">状态</div>
            <div class="info"><eq name="vo['is_lock']" value='0'><span style="color: #FF0000;">未锁定</span><else />已锁定</eq><eq name="vo['is_pay']" value='2'>[空单]</eq></div>
        </div>
        <div class="zong">
            <div class="tittle">是否奖金</div>
            <div class="info"><eq name="vo['is_fenh']" value='0'><span style="color: #FF0000;">开启奖金</span><else />关闭奖金</eq></div>
        </div>

</div>
</volist>
</table>



<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
    <tr>
   	  <td width="60%">
          <input name="全选" type="button" class="button_text button" id="AllX" onclick="CheckAll(this.form)" value="全选" />	  &nbsp;&nbsp;
          <input type="submit" name="action" value="开启会员" class="button_text button" onclick="{if(confirm('确定要开启会员吗?')){return true;}return false;}">&nbsp;&nbsp;
          <input type="submit" name="action" value="锁定会员" class="button_text button" onclick="{if(confirm('确定要锁定会员吗?')){return true;}return false;}" >&nbsp;&nbsp;
          <!--<input type="submit" name="action" value="开启奖金" class="button_text button" onclick="{if(confirm('确定要开启奖金吗?')){return true;}return false;}" >&nbsp;&nbsp;
          <input type="submit" name="action" value="关闭奖金" class="button_text button" onclick="{if(confirm('确定要关闭奖金吗?')){return true;}return false;}" >&nbsp;&nbsp;-->
          <input type="submit" name="action" value="删除会员" class="button_text button" onclick="{if(confirm('确定要删除会员吗?')){return true;}return false;}" >&nbsp;&nbsp;
      </td>
    </tr>
</table>
<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td>{$page}</td>

    </tr>
</table>
</form>

    <style>
        .infoA p{
            float: left;
        }
        .infoA{
            margin-top:10px;
        }
        .input-group{margin-top:15px;width: 100%}
    </style>

    <form style="margin-top:5px;" method='get' action="">
        第<input name="p" style="width: 50px;border:1px solid #cccc;padding-left:2px;" type="number">页
        <button style="width: 50px;border:none;background:#1296db;color: white;border-radius: 3px; ">跳转</button>
    </form>

    <form method='post' action="__URL__/adminMenber/">
        <div style="margin: 0 auto;">

            <div class="infoA">
                <p>搜索会员：</p>
                <input name="UserID" type="text" id="UserID" title="帐号查询" maxlength="50" >
            </div>
            <div style="clear: both"></div>
            <!--<div class="infoA">
                <p>级别条件：</p>
                <select name="ulevel" >
                    <option value="0">全部</option>
                    <volist name="voo" id="ulv">
                        <option value="{$key}">{$level[$key-1]}</option>
                    </volist>
                </select>
            </div>-->
            <div style="clear: both"></div>
            <div class="infoA">
                <p> 注册时间：</p>
                <select name="other"  >
                    <option value="0">全部</option>
                    <option value="1">今天注册</option>
                </select>
            </div>

            <div class="form-group" id="data_5">
                <!--<label class="font-noraml"> 开通时间</label>-->
                <div class="input-daterange input-group" id="datepicker">

                    <input type="text" class="form-control" name="time1" id="time1"
                           placeholder="开通的开始日期" value="<notempty name='time1'>{$time1}</notempty>">
                    <span class="input-group-addon">到</span>
                    <input type="text" class="form-control" name="time2" id="time2"
                           placeholder="截止日期" value="<notempty name='time2'>{$time2}</notempty>">
                </div>
            </div>
            <div class="chaxun">
            <input type="submit" name="Submit" value="查询" class="bt_tj"  />
        </div>
        </div>
    </form>


<!-- <table width="100%" align="center" style="display:none">
    <tr>
    <td align="center"><form method='post' action="__URL__/adminMenber/">搜索会员业绩：
    开始日期：<input name="sNowDate" type="text" id="sNowDate" onFocus="showCalendar(this)" readonly />
    结束日期：  <input name="endNowDate" type="text" id="endNowDate" onFocus="showCalendar(this)" readonly />

    会员编号 ： <input type="text" name="RID" title="帐号查询">
    <input type="submit" name="Submit" value="查询"  class="button_text"/>
    &nbsp;
    </form></td>
    </tr>
</table> -->
 
                 <script type="text/javascript">
                                layui.use('laydate', function(){
                                  var laydate = layui.laydate;
                                      var start = {
                                      // min: laydate.now(-2)
                                      max: '2099-06-16 23:59:59'
                                      ,istoday: false
                                      ,choose: function(datas){
                                        end.min = datas; //开始日选好后，重置结束日的最小日期
                                        end.start = datas //将结束日的初始值设定为开始日
                                      }
                                    };
                                    
                                    var end = {
                                      min: laydate.now()
                                      ,max: '2099-06-16 23:59:59'
                                      ,istoday: false
                                      ,choose: function(datas){
                                        start.max = datas; //结束日选好后，重置开始日的最大日期
                                      }
                                    };
                                    
                                    $('#time1').on('click',function(){
                                      start.elem = this;
                                      laydate(start);
                                    });
                                    $('#time2').on('click',function(){
                                      end.elem = this
                                      laydate(end);
                                    });
                                });
                            </script>

</div>

<script>new TableSorter("tb1");</script>

<div style="height: 100px;"></div>
<include file="Public:footer" />
